﻿<%@ Page Title="" Language="C#" MasterPageFile="~/About.master" AutoEventWireup="true" CodeFile="Stats.aspx.cs" Inherits="Stats" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
	Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width: 95%; text-align:left; margin: 0 auto">

	Sponsor: <br />
	<script type="text/javascript"><!--
		google_ad_client = "ca-pub-6557158343810013";
		/* Leaderboard - kconnolly.net */
		google_ad_slot = "1090694274";
		google_ad_width = 728;
		google_ad_height = 90;
		//-->
		</script>
		<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
		<br /><br />


	<asp:DataGrid ID="dgHits" runat="server" width="100%" OnPreRender="dgHits_PreRender" CellPadding="4" ForeColor="#333333" GridLines="None" Visible="false">
		<AlternatingItemStyle BackColor="White" />
		<EditItemStyle BackColor="#2461BF" />
		<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
		<ItemStyle BackColor="#EFF3FB" />
		<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
		<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
	</asp:DataGrid>

	<asp:Chart ID="cTrafficByMonth" runat="server" ImageStorageMode="UseImageLocation" ImageLocation="Graph" Width="850" Height="200" TextAntiAliasingQuality="High" AlternateText="Traffic by Month" AntiAliasing="All" >
		<Series>
			<asp:Series Name="Humans" ChartType="Line" Color="Green" ToolTip="Human traffic" />
			<asp:Series Name="Spiders" ChartType="Line" Color="Red" ToolTip="Spider traffic" />
			<asp:Series Name="Total" ChartType="Line" Color="Blue" ToolTip="Total traffic" />
		</Series>
		<ChartAreas>
			<asp:ChartArea Name="ChartArea1">
				<AxisY Title="Distinct Sessions \n per Month" />
				<AxisX LabelAutoFitStyle="LabelsAngleStep45" Title="Months" />
			</asp:ChartArea>
		</ChartAreas>
		<Legends>
			<asp:Legend Docking="Bottom" Alignment="Center" />
		</Legends>
	</asp:Chart>
	<br /><br />

	Recent referrers:
	<asp:Panel ID="pnlReferrers" runat="server" ScrollBars="Auto" style="height: 200px; width: 100%;">
		<asp:DataGrid ID="dgReferrers" runat="server" Width="100%" OnItemDataBound="dgReferrers_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" ShowHeader="false">
			<AlternatingItemStyle BackColor="White" />
			<EditItemStyle BackColor="#2461BF" />
			<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<ItemStyle BackColor="#EFF3FB" />
			<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
			<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
		</asp:DataGrid>
	</asp:Panel>
	<br /><br />
	
	Recent search queries:
	<asp:Panel ID="pnlSearches" runat="server" ScrollBars="Auto" style="height: 200px; width: 100%;">
		<asp:DataGrid ID="dgSearches" runat="server" width="100%" OnItemDataBound="dgSearches_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false" ShowHeader="false">
			<AlternatingItemStyle BackColor="White" />
			<EditItemStyle BackColor="#2461BF" />
			<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<ItemStyle BackColor="#EFF3FB" />
			<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
			<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
			<Columns>
				<asp:BoundColumn DataField="Engine" HeaderText="Engine" />
				<asp:BoundColumn DataField="Query" HeaderText="Query" />
			</Columns>
		</asp:DataGrid>
	</asp:Panel>
	<br /><br />

	Random statistics: <br />
	<asp:Panel ID="pnlStats" runat="server" ScrollBars="Auto" style="height: 200px; width: 100%;">
		<asp:DataGrid ID="dgStats" runat="server" width="100%" OnItemDataBound="dgSearches_ItemDataBound" CellPadding="4" ForeColor="#333333" GridLines="None" AutoGenerateColumns="false" ShowHeader="false">
			<AlternatingItemStyle BackColor="White" />
			<EditItemStyle BackColor="#2461BF" />
			<FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
			<ItemStyle BackColor="#EFF3FB" />
			<PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
			<SelectedItemStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
			<Columns>
				<asp:BoundColumn DataField="Stat" HeaderText="Stat" />
				<asp:BoundColumn DataField="Value" HeaderText="Value" />
			</Columns>
		</asp:DataGrid>
	</asp:Panel>
	
</div>
</asp:Content>

